Optimal. Leaf size=444 \[ \frac{4 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (a g^2-b f g+c f^2\right ) \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{3 c g^2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}-\frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} (2 c f-b g) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{3 c g^2 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}+\frac{2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}{3 g} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.962545, antiderivative size = 444, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.208 \[ \frac{4 \sqrt{2} \sqrt{b^2-4 a c} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} \left (a g^2-b f g+c f^2\right ) \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}} F\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{3 c g^2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}-\frac{\sqrt{2} \sqrt{b^2-4 a c} \sqrt{f+g x} \sqrt{-\frac{c \left (a+b x+c x^2\right )}{b^2-4 a c}} (2 c f-b g) E\left (\sin ^{-1}\left (\frac{\sqrt{\frac{b+2 c x+\sqrt{b^2-4 a c}}{\sqrt{b^2-4 a c}}}}{\sqrt{2}}\right )|-\frac{2 \sqrt{b^2-4 a c} g}{2 c f-\left (b+\sqrt{b^2-4 a c}\right ) g}\right )}{3 c g^2 \sqrt{a+b x+c x^2} \sqrt{\frac{c (f+g x)}{2 c f-g \left (\sqrt{b^2-4 a c}+b\right )}}}+\frac{2 \sqrt{f+g x} \sqrt{a+b x+c x^2}}{3 g} \]
Antiderivative was successfully verified.
[In] Int[Sqrt[a + b*x + c*x^2]/Sqrt[f + g*x],x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 157.082, size = 418, normalized size = 0.94 \[ \frac{2 \sqrt{f + g x} \sqrt{a + b x + c x^{2}}}{3 g} + \frac{4 \sqrt{2} \sqrt{\frac{c \left (- f - g x\right )}{b g - 2 c f + g \sqrt{- 4 a c + b^{2}}}} \sqrt{\frac{c \left (a + b x + c x^{2}\right )}{4 a c - b^{2}}} \sqrt{- 4 a c + b^{2}} \left (a g^{2} - b f g + c f^{2}\right ) F\left (\operatorname{asin}{\left (\frac{\sqrt{2} \sqrt{\frac{b + 2 c x + \sqrt{- 4 a c + b^{2}}}{\sqrt{- 4 a c + b^{2}}}}}{2} \right )}\middle | \frac{2 g \sqrt{- 4 a c + b^{2}}}{b g - 2 c f + g \sqrt{- 4 a c + b^{2}}}\right )}{3 c g^{2} \sqrt{f + g x} \sqrt{a + b x + c x^{2}}} + \frac{\sqrt{2} \sqrt{\frac{c \left (a + b x + c x^{2}\right )}{4 a c - b^{2}}} \sqrt{f + g x} \sqrt{- 4 a c + b^{2}} \left (b g - 2 c f\right ) E\left (\operatorname{asin}{\left (\frac{\sqrt{2} \sqrt{\frac{b + 2 c x + \sqrt{- 4 a c + b^{2}}}{\sqrt{- 4 a c + b^{2}}}}}{2} \right )}\middle | \frac{2 g \sqrt{- 4 a c + b^{2}}}{b g - 2 c f + g \sqrt{- 4 a c + b^{2}}}\right )}{3 c g^{2} \sqrt{\frac{c \left (- f - g x\right )}{b g - 2 c f + g \sqrt{- 4 a c + b^{2}}}} \sqrt{a + b x + c x^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((c*x**2+b*x+a)**(1/2)/(g*x+f)**(1/2),x)
[Out]
_______________________________________________________________________________________
Mathematica [C] time = 11.8593, size = 591, normalized size = 1.33 \[ \frac{2 \left (\frac{i (f+g x) \sqrt{1-\frac{2 \left (g (a g-b f)+c f^2\right )}{(f+g x) \left (\sqrt{g^2 \left (b^2-4 a c\right )}-b g+2 c f\right )}} \sqrt{\frac{2 \left (g (a g-b f)+c f^2\right )}{(f+g x) \left (\sqrt{g^2 \left (b^2-4 a c\right )}+b g-2 c f\right )}+1} \left (\left (-2 c f \sqrt{g^2 \left (b^2-4 a c\right )}+b g \sqrt{g^2 \left (b^2-4 a c\right )}+4 a c g^2-b^2 g^2\right ) F\left (i \sinh ^{-1}\left (\frac{\sqrt{2} \sqrt{\frac{c f^2-b g f+a g^2}{-2 c f+b g+\sqrt{\left (b^2-4 a c\right ) g^2}}}}{\sqrt{f+g x}}\right )|-\frac{-2 c f+b g+\sqrt{\left (b^2-4 a c\right ) g^2}}{2 c f-b g+\sqrt{\left (b^2-4 a c\right ) g^2}}\right )-(b g-2 c f) \left (\sqrt{g^2 \left (b^2-4 a c\right )}-b g+2 c f\right ) E\left (i \sinh ^{-1}\left (\frac{\sqrt{2} \sqrt{\frac{c f^2-b g f+a g^2}{-2 c f+b g+\sqrt{\left (b^2-4 a c\right ) g^2}}}}{\sqrt{f+g x}}\right )|-\frac{-2 c f+b g+\sqrt{\left (b^2-4 a c\right ) g^2}}{2 c f-b g+\sqrt{\left (b^2-4 a c\right ) g^2}}\right )\right )}{2 \sqrt{2} c \sqrt{\frac{g (a g-b f)+c f^2}{\sqrt{g^2 \left (b^2-4 a c\right )}+b g-2 c f}}}+g^2 \sqrt{f+g x} (a+x (b+c x))+\frac{g^2 (a+x (b+c x)) (b g-2 c f)}{c \sqrt{f+g x}}\right )}{3 g^3 \sqrt{a+x (b+c x)}} \]
Antiderivative was successfully verified.
[In] Integrate[Sqrt[a + b*x + c*x^2]/Sqrt[f + g*x],x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.032, size = 1854, normalized size = 4.2 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((c*x^2+b*x+a)^(1/2)/(g*x+f)^(1/2),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{c x^{2} + b x + a}}{\sqrt{g x + f}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 + b*x + a)/sqrt(g*x + f),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{\sqrt{c x^{2} + b x + a}}{\sqrt{g x + f}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 + b*x + a)/sqrt(g*x + f),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{\sqrt{a + b x + c x^{2}}}{\sqrt{f + g x}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((c*x**2+b*x+a)**(1/2)/(g*x+f)**(1/2),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate(sqrt(c*x^2 + b*x + a)/sqrt(g*x + f),x, algorithm="giac")
[Out]